Skip to content

Comments

fix: missing validator_count in head sync path#31

Open
olegshmuelov wants to merge 3 commits intostagefrom
fix/head-sync-validator-count
Open

fix: missing validator_count in head sync path#31
olegshmuelov wants to merge 3 commits intostagefrom
fix/head-sync-validator-count

Conversation

@olegshmuelov
Copy link
Contributor

Summary

  • Fix UpdateClusterIfExists not writing validator_count, causing stale
    cluster state when validators are added/removed between finalized and head
  • Add clusterUpdates count to SyncClustersToHead debug log for observability
  • Update test to verify validator_count is written

Root cause

The head sync path (applyClusterUpdatesUpdateClusterIfExists) was missing
validator_count from both the ClusterRow literal and the SQL UPDATE statement.
This caused IncorrectClusterState failures on Hoodi when a validator was added
between finalized and head blocks.

iurii-ssv
iurii-ssv previously approved these changes Feb 12, 2026
iurii-ssv
iurii-ssv previously approved these changes Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants